<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>


		<h:panelGroup layout="block" style="left: 0px; 
    top: 0px; width:100%; height:100px; position:fixed; z-index: 1; ">

			<h:graphicImage library="images" name="header.png"
				style="width:100%; height:150px" />

        </h:panelGroup>
        <h:panelGroup rendered="#{!userBean.isLoggedIn()}" style="float: right; margin-riqht: 10px; margin-top: 10px; position:relative; z-index: 2">
                                
                 <p:commandLink action="#{mainBean.logout()}"
					style="color: blue;" immediate="true">sign in</p:commandLink>
			</h:panelGroup>
			<h:panelGroup  rendered="#{userBean.isLoggedIn()}" style="float: right; margin-riqht: 10px; margin-top: 10px; position:relative; z-index: 2">
                 
                 '<h:outputText value="#{userBean.login}"
					styleClass="curLogin" />'|
                 <p:commandLink action="#{mainBean.logout()}"
					style="color: blue;" immediate="true">sign out</p:commandLink>
			</h:panelGroup>
		
	
	</ui:composition>
</body>
</html>


